package com.guoning.office_system.mapper;

import com.guoning.office_system.model.RoleFunction;
import com.guoning.office_system.model.User;
import com.guoning.office_system.vo.Criteria;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Mapper
@Component("RoleFunctionMapper")
public interface RoleFunctionMapper {
    List<Long> selectFuncByRoleId(Long roleId);

    List<Map> selectNaNFuncByRoleId(Long roleId);

    int updateForDelete(Criteria criteria);

    int deleteByPrimaryKey(Long id);

    int insert(Criteria criteria);

    int insertSelective(RoleFunction record);

    RoleFunction selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(RoleFunction record);

    int updateByPrimaryKey(RoleFunction record);
}